]> git.mxchange.org Git - friendica.git/commitdiff
New function skeleton for execution of queries
authorMichael <heluecht@pirati.ca>
Mon, 24 Apr 2017 06:13:42 +0000 (06:13 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 24 Apr 2017 06:13:42 +0000 (06:13 +0000)
include/auth_ejabberd.php
include/dba.php

index 8ee3af8e2be23148342d2eb84bcffb6707ba8da4..3ac72d916aa1896149f32a5eb855f7680fc938c4 100755 (executable)
@@ -32,6 +32,8 @@
  *
  */
 
+die();
+
 if (sizeof($_SERVER["argv"]) == 0)
        die();
 
index 0d983be327a8a85ad8fc5de401699214ff2a9cfa..26da115b5761d3c042b3d567e7682ba91df662ff 100644 (file)
@@ -635,6 +635,10 @@ class dba {
         * @return boolean Was the query successfull?
         */
        static public function e($sql) {
+               $args = func_get_args();
+
+               $stmt = self::p();
+               self::close($stmt);
        }
 
        /**
@@ -739,8 +743,6 @@ function dbesc($str) {
 //                   'user', 1);
 function q($sql) {
        global $db;
-       $args = func_get_args();
-       unset($args[0]);
 
        if ($db && $db->connected) {
                $sql = $db->any_value_fallback($sql);