[geeklog-cvs] geeklog: Database classes shouldn't use COM_errorLog
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Jan 29 09:36:34 EST 2011
changeset 8082:ce360e517fa4
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/ce360e517fa4
user: Dirk Haun <dirk at haun-online.de>
date: Sat Jan 22 18:41:44 2011 +0100
description:
Database classes shouldn't use COM_errorLog
diffstat:
system/databases/pgsql.class.php | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (25 lines):
diff -r 9c6e11a161e2 -r ce360e517fa4 system/databases/pgsql.class.php
--- a/system/databases/pgsql.class.php Sat Jan 22 17:02:51 2011 +0100
+++ b/system/databases/pgsql.class.php Sat Jan 22 18:41:44 2011 +0100
@@ -490,10 +490,8 @@
}
$sql="INSERT INTO $table ($fields) VALUES ($values)";
- }
- else
- {
- COM_errorLog("There was a problem saving this DB_save call: $fields,$values");
+ } else {
+ $this->_errorlog("There was a problem saving this DB_save call: $fields,$values");
}
}
else //no keys to worry about
@@ -550,7 +548,7 @@
}
} else {
// error, they both have to be arrays and of the same size
- COM_errorLog("The columns ($id) do not match the value count ($value)");
+ $this->_errorlog("The columns ($id) do not match the value count ($value)");
return false;
}
} else {
More information about the geeklog-cvs
mailing list