<?php
+require_once("dbm.php");
# if PDO is avaible for mysql, use the new database abstraction
# TODO: PDO is disabled for release 3.3. We need to investigate why
$a->save_timestamp($stamp1, "database");
+ if (strtolower(substr($sql, 0, 6)) != "select")
+ $a->save_timestamp($stamp1, "database_write");
+
if(x($a->config,'system') && x($a->config['system'],'db_log')) {
if (($duration > $a->config["system"]["db_loglimit"])) {
$duration = round($duration, 3);
}
}
- /**
- * Checks if $array is a filled array with at least one entry.
- *
- * @param $array mixed A filled array with at least one entry
- * @return Whether $array is a filled array
- */
- public function is_result ($array) {
- return (is_array($array) && count($array) > 0);
- }
-
function __destruct() {
if ($this->db)
if($this->mysqli)