$this->create_temporary();
$sql = $this->db()->method('tables');
- if (!self::p('count')) $sql .= " LIMIT 0";
+ if (!$this->p('count')) $sql .= " LIMIT 0";
$sql = "SELECT * FROM ($sql) t WHERE name=".$this->db()->quote($this->name);
$sth = $this->db()->conn->query($sql,PDO::FETCH_ASSOC);
'name',
'type',
] as $k) {
-# NB 28.10.16 if (!empty($this->$k) and empty($this->status[$k])) $this->status[$k] = $this->$k;
if (!empty($this->$k)) $this->status[$k] = $this->$k;
}
# NB 08.08.17 if (!empty($this->status[$k])) continue;
if (empty($key)) {
- if (!self::p($k)) continue;
+ if (!$this->p($k)) continue;
+
} elseif(is_array($key)) {
if (!in_array($k,$key)) continue;
+
} else {
if ($k!=$key) continue;
}