From 4e4f7ac79fe5f75ee5595c3a6eb7d3e445c8c6e2 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 28 Mar 2012 20:50:09 -0700 Subject: some reported warnings cleaned up --- include/dba.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/dba.php') 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; } -- cgit v1.2.3 From 5921dc6f1679afdcc0551da248f94d24db9ed360 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 29 Mar 2012 16:01:44 -0700 Subject: typo in function name --- include/dba.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/dba.php') diff --git a/include/dba.php b/include/dba.php index 138e82b58..76cc0bc7b 100755 --- a/include/dba.php +++ b/include/dba.php @@ -209,9 +209,8 @@ function q($sql) { if($db && $db->connected) { $stmt = vsprintf($sql,$args); if($stmt === false) - logger('dba: vsprintf error: ' . print_r(debug_bracktrace(),true)); - $ret = $db->q($stmt); - return $ret; + logger('dba: vsprintf error: ' . print_r(debug_backtrace(),true)); + return $db->q($stmt); } /** -- cgit v1.2.3