From 79d524a9ad6319bbf82e2e826c36fa024c60bc41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 16 May 2017 17:54:45 +0200 Subject: [PATCH] opps, added missing curly braces MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- include/dba_pdo.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/dba_pdo.php b/include/dba_pdo.php index 4a1d5aca15..63f35739a3 100644 --- a/include/dba_pdo.php +++ b/include/dba_pdo.php @@ -279,14 +279,13 @@ function dbesc($str) { return(str_replace("'","\\'",$str)); }} - - -// Function: q($sql,$args); -// Description: execute SQL query with printf style args. -// Example: $r = q("SELECT * FROM `%s` WHERE `uid` = %d", -// 'user', 1); - if (! function_exists('q')) { +/** + * Function: q($sql,$args); + * Description: execute SQL query with printf style args. + * Example: $r = q("SELECT * FROM `%s` WHERE `uid` = %d", + * 'user', 1); + */ function q($sql) { global $db; @@ -296,8 +295,9 @@ function q($sql) { if ($db && $db->connected) { $stmt = @vsprintf($sql,$args); // Disabled warnings //logger("dba: q: $stmt", LOGGER_ALL); - if ($stmt === false) + if ($stmt === false) { logger('dba: vsprintf error: ' . print_r(debug_backtrace(),true), LOGGER_DEBUG); + } return $db->q($stmt); } -- 2.39.5