More small changes to help save a few microseconds.

This commit is contained in:
green-ponies (jgen)
2012-01-12 15:46:34 -05:00
parent d7ff1b96ab
commit fc12bbbfe5
4 changed files with 71 additions and 71 deletions

View File

@ -384,7 +384,7 @@ function _count_execs($db, $sql, $inputarray) {
if(DEBUG) {
$fp = @fopen("data/sql.log", "a");
if($fp) {
if(is_array($inputarray)) {
if(isset($inputarray) && is_array($inputarray)) {
fwrite($fp, preg_replace('/\s+/msi', ' ', $sql)." -- ".join(", ", $inputarray)."\n");
}
else {