# having, denorm, EMPTY
if ($field->extras) {
$extra_where = (string)$this->db()->conf_type('extra_where');
+ #if ($_SERVER['REMOTE_USER'] == 'nico') debug($sql);
+ $k = $field->extras;
if ($extra_where == 'having') {
$having[] = "$k$equal$v";
} else {
public function add_extras($extras) {
if ($this->p('extras') === '0') return false;
- #return false;
-
- # Test if type exists because of a bug from shell.php
-# NB 30.08.16 if ($this->db()->conf_type('type')) $this->fields();
foreach ($extras as $k => $v) {
public function err_sql($sql) {
$err = $this->db()->conn->errorInfo();
$err[] = $sql;
- self::bye(join(' | ',$err));
+ $this->bye(join(' | ',$err));
}
public function html_menu($opt=[]) {