1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: Adds static in front of isError and isManip functions
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: http://bugs.debian.org/670242
Forwarded: no
--- php-db-1.7.14.orig/DB-1.7.14/DB.php
+++ php-db-1.7.14/DB-1.7.14/DB.php
@@ -589,7 +589,7 @@ class DB
*
* @return bool whether $value is DB_Error object
*/
- function isError($value)
+ static function isError($value)
{
return is_object($value) && is_a($value, 'DB_Error');
}
@@ -625,7 +625,7 @@ class DB
*
* @return boolean whether $query is a data manipulation query
*/
- function isManip($query)
+ static function isManip($query)
{
$manips = 'INSERT|UPDATE|DELETE|REPLACE|'
. 'CREATE|DROP|'
|