]> git.mxchange.org Git - friendica.git/commitdiff
opps, added missing curly braces
authorRoland Häder <roland@mxchange.org>
Tue, 16 May 2017 15:54:45 +0000 (17:54 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 16 May 2017 15:56:36 +0000 (17:56 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
include/dba_pdo.php

index 4a1d5aca1564b0b4e99bff10340ac63365bd7634..63f35739a36bac973d5914ac794d86339dea87ab 100644 (file)
@@ -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);
        }