File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 10
10
* @copyright Copyright (c) 2010
11
11
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
12
12
* @link http://github.com/joshcam/PHP-MySQLi-Database-Class
13
- * @version 2.6-master
13
+ * @version 2.6
14
14
*/
15
15
16
16
class MysqliDb
@@ -1493,7 +1493,7 @@ protected function _buildLimit($numRows)
1493
1493
protected function _prepareQuery ()
1494
1494
{
1495
1495
if (!$ stmt = $ this ->mysqli ()->prepare ($ this ->_query )) {
1496
- $ msg = " Problem preparing query ( $ this ->_query ) " . $ this ->mysqli ()-> error ;
1496
+ $ msg = $ this ->mysqli ()-> error . " query: " . $ this ->_query ;
1497
1497
$ this ->reset ();
1498
1498
throw new Exception ($ msg );
1499
1499
}
@@ -1868,11 +1868,10 @@ public function tableExists($tables)
1868
1868
return false ;
1869
1869
}
1870
1870
1871
- array_walk ($ tables , function (&$ value , $ key ) {
1872
- $ value = self ::$ prefix . $ value ;
1873
- });
1871
+ foreach ($ tables as $ i => $ value )
1872
+ $ tables [$ i ] = self ::$ prefix . $ value ;
1874
1873
$ this ->where ('table_schema ' , $ this ->db );
1875
- $ this ->where ('table_name ' , $ tables , 'IN ' );
1874
+ $ this ->where ('table_name ' , $ tables , 'in ' );
1876
1875
$ this ->get ('information_schema.tables ' , $ count );
1877
1876
return $ this ->count == $ count ;
1878
1877
}
You can’t perform that action at this time.
0 commit comments