X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=extlib%2FDB%2Fmysqli.php;h=5f081f7c4fe262968977005fa7b07bd69821bbf0;hb=1350987e2eb9b7e4fe18df1a06b356027818dc8d;hp=c6941b170eab255db5417a3d746a9339804d1326;hpb=8884a5255fb90fda67b63fa0d4252d77176337e5;p=quix0rs-gnu-social.git diff --git a/extlib/DB/mysqli.php b/extlib/DB/mysqli.php index c6941b170e..5f081f7c4f 100644 --- a/extlib/DB/mysqli.php +++ b/extlib/DB/mysqli.php @@ -6,7 +6,7 @@ * The PEAR DB driver for PHP's mysqli extension * for interacting with MySQL databases * - * PHP versions 4 and 5 + * PHP version 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: @@ -19,7 +19,7 @@ * @author Daniel Convissor * @copyright 1997-2007 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: mysqli.php,v 1.82 2007/09/21 13:40:41 aharvey Exp $ + * @version CVS: $Id$ * @link http://pear.php.net/package/DB */ @@ -43,7 +43,7 @@ require_once 'DB/common.php'; * @author Daniel Convissor * @copyright 1997-2007 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version Release: 1.7.14RC1 + * @version Release: 1.8.2 * @link http://pear.php.net/package/DB * @since Class functional since Release 1.6.3 */ @@ -993,7 +993,7 @@ class DB_mysqli extends DB_common $got_string = false; } - if (!is_a($id, 'mysqli_result')) { + if (!is_object($id) || !is_a($id, 'mysqli_result')) { return $this->mysqliRaiseError(DB_ERROR_NEED_MORE_DATA); }