Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mysql.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/mysql.php b/lib/mysql.php
index 60bfa3a..8255b33 100644
--- a/lib/mysql.php
+++ b/lib/mysql.php
@@ -19,6 +19,13 @@ function mysql_run_query($query) {
return $result;
}
+function mysql_prepare_query($query) {
+ global $mysql;
+ if ( ! $result = $mysql -> prepare($query) )
+ die_500( "Prepare failed: " . $mysql -> error );
+ return $result;
+}
+
function show_warning_on_offline_slave() {
$result = mysql_run_query("SHOW STATUS LIKE \"Slave_running\"");
if (($result -> num_rows == 0) ||