From fe5264c3b132129a0a05bd387bb1739dbf688e83 Mon Sep 17 00:00:00 2001 From: shish Date: Wed, 4 Jul 2007 01:21:32 +0000 Subject: [PATCH] turn off sql logging git-svn-id: file:///home/shish/svn/shimmie2/trunk@214 7f39781d-f577-437e-ae19-be835c7a54ca --- core/util.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/util.inc.php b/core/util.inc.php index 546f7ce1..9e1a641f 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -205,9 +205,9 @@ function get_thumbnail_size($orig_width, $orig_height) { # $db is the connection object function CountExecs($db, $sql, $inputarray) { global $_execs; - $fp = fopen("sql.log", "a"); - fwrite($fp, preg_replace('/\s+/msi', ' ', $sql)."\n"); - fclose($fp); +# $fp = fopen("sql.log", "a"); +# fwrite($fp, preg_replace('/\s+/msi', ' ', $sql)."\n"); +# fclose($fp); if (!is_array($inputarray)) $_execs++; # handle 2-dimensional input arrays else if (is_array(reset($inputarray))) $_execs += sizeof($inputarray);