aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-28 20:50:09 -0700
committerfriendica <info@friendica.com>2012-03-28 20:50:09 -0700
commit4e4f7ac79fe5f75ee5595c3a6eb7d3e445c8c6e2 (patch)
treeebb3bc0f22f55ea2bcea023b32d0e57200c9293a /include/dba.php
parenta946b7cea3e589fc08ca25d84e5d660efa5b3de6 (diff)
downloadvolse-hubzilla-4e4f7ac79fe5f75ee5595c3a6eb7d3e445c8c6e2.tar.gz
volse-hubzilla-4e4f7ac79fe5f75ee5595c3a6eb7d3e445c8c6e2.tar.bz2
volse-hubzilla-4e4f7ac79fe5f75ee5595c3a6eb7d3e445c8c6e2.zip
some reported warnings cleaned up
Diffstat (limited to 'include/dba.php')
-rwxr-xr-xinclude/dba.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/dba.php b/include/dba.php
index 5beea7a3a..138e82b58 100755
--- a/include/dba.php
+++ b/include/dba.php
@@ -207,7 +207,10 @@ function q($sql) {
unset($args[0]);
if($db && $db->connected) {
- $ret = $db->q(vsprintf($sql,$args));
+ $stmt = vsprintf($sql,$args);
+ if($stmt === false)
+ logger('dba: vsprintf error: ' . print_r(debug_bracktrace(),true));
+ $ret = $db->q($stmt);
return $ret;
}