Minor - showing sql var_dump if wanted

skala
Julio Montoya 13 years ago
parent e993fb517b
commit f02de61de5
  1. 2
      main/inc/lib/database.lib.php

@ -1132,7 +1132,7 @@ class Database {
$sql = 'INSERT INTO '.$table_name.' ('.implode(',',$params).') VALUES ('.implode(',',$values).')';
$result = self::query($sql);
if ($show_query) {
echo $sql;
var_dump($sql);
}
return self::get_last_insert_id();
}

Loading…
Cancel
Save