Browse Source

New function skeleton for execution of queries

tags/3.5.2
Michael 2 years ago
parent
commit
28a28f00a4
2 changed files with 6 additions and 2 deletions
  1. 2
    0
      include/auth_ejabberd.php
  2. 4
    2
      include/dba.php

+ 2
- 0
include/auth_ejabberd.php View File

@@ -32,6 +32,8 @@
32 32
  *
33 33
  */
34 34
 
35
+die();
36
+
35 37
 if (sizeof($_SERVER["argv"]) == 0)
36 38
 	die();
37 39
 

+ 4
- 2
include/dba.php View File

@@ -635,6 +635,10 @@ class dba {
635 635
 	 * @return boolean Was the query successfull?
636 636
 	 */
637 637
 	static public function e($sql) {
638
+		$args = func_get_args();
639
+
640
+		$stmt = self::p();
641
+		self::close($stmt);
638 642
 	}
639 643
 
640 644
 	/**
@@ -739,8 +743,6 @@ function dbesc($str) {
739 743
 //                   'user', 1);
740 744
 function q($sql) {
741 745
 	global $db;
742
-	$args = func_get_args();
743
-	unset($args[0]);
744 746
 
745 747
 	if ($db && $db->connected) {
746 748
 		$sql = $db->any_value_fallback($sql);

Loading…
Cancel
Save