Fix of notice: Undefined variable $table_prefix on line 316
-
In the current version (https://svn.wp-plugins.org/memcached/trunk/object-cache.php) I’m getting that notice. It’s in the function switch_to_blog(), the $table_prefix variable is not visible in that function. I was able to fix it by adding this before line 316:
global $table_prefix;
So now function looks like:function switch_to_blog( $blog_id ) { $blog_id = (int) $blog_id; global $table_prefix; $this->blog_prefix = ( is_multisite() ? $blog_id : $table_prefix ) . ':'; }
- The topic ‘Fix of notice: Undefined variable $table_prefix on line 316’ is closed to new replies.