• db-module-wrapper.php
    
    	function __call( $name, $args ) {
            if (strcmp($name, "escape_by_ref") == 0) {
    
                if ((is_array($args)) && (count($args)==1)) {
                    return call_user_func_array( array( $this->dbcr_wpdb, $name ),  array(&$args[0]));
                }
    
                return call_user_func_array( array( $this->dbcr_wpdb, $name ), $args );
            }
    		return call_user_func_array( array( $this->dbcr_wpdb, $name ), $args );
    	}
    }

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]

    http://wordpress.org/extend/plugins/db-cache-reloaded-fix/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Quick Fix PHP Warning: Parameter 1 to wpdb::escape_by_ref() expected to be a ref’ is closed to new replies.