$r .= '<option value="'.$table.'"';
#$pretty = prettyText($table);
$r .= $table == @$_REQUEST['table'] ? ' selected="selected"' : '';
- $r .= ">$table</option>".PHP_EOL;
+ $r .= '>'.prettyText($table).'</option>'.PHP_EOL;
}
$r .= '</select>'.PHP_EOL;
foreach ($this->fields() as $name => $f) {
#debug($f);
- if ($f['key'] == 1) $this->fields_keys[$name] = $f;
+ if (@$f['key'] == 1) $this->fields_keys[$name] = $f;
}
}
// Select
//
$sql = "SELECT *" . $this->select_extras();
- $sql .= " FROM $this->name".$this->where_criterias($_REQUEST,$_REQUEST['op']);
+ $sql .= " FROM $this->name".$this->where_criterias($_REQUEST,@$_REQUEST['op']);
$this->sql = $sql;
#$this->debug($sql);
$this->debug($sql,1);
if (isset($_REQUEST['limit'])) {
$limit = $_REQUEST['limit'];
$sql .= ' LIMIT '.$limit;
+ } else {
+ $limit = '';
}
//