];
#'(&('.$search['filter'].')(userPassword=*))'
-if (preg_match('/^([^,]+),(.*?)$/',$user,$m)) {
+if ($user and preg_match('/^([^,]+),(.*?)$/',$user,$m)) {
$filter = $m[1];
} elseif($user) {
}
# Args into this
- foreach ($opt as $k=>$v) $this->$k = $v;
+ # NB 07.10.24 foreach ($opt as $k=>$v) $this->$k = $v;
#parent::__construct($opt);
+ foreach ($opt as $k => $v) {
+ if (property_exists($this,$k)) $this->$k = $v;
+ }
# Out Class
if (empty($this->out)) $this->out = new Out([
public $key = 0;
public $uniq = 0;
public $index = 0;
+ public $dyn = 0;
public $size;
- public $default;
+ public $default = '';
public $autoincrement;
public $extra;
public $extras;
# NB 06.02.18 Bug if ($this->default == "''") $this->default = '';
if ($default === null) $default = $this->default;
-# NB 12.12.17 if (strtoupper($default) == "NULL") $default = null;
- #if (strtoupper($default) == "NOW()") $default = null;
-# NB 08.01.18 if (strtoupper($default) == "NOW()") $default = $date_microtime();
-# NB 08.01.18 if (strtoupper($default) == "CURRENT_TIMESTAMP") $default = $date_microtime();
if (strtoupper($default) == "NOW()") $default = date("Y-m-d H:i:s.u");
if (strtoupper($default) == "CURRENT_TIMESTAMP") $default = date("Y-m-d H:i:s.u");
if (strtoupper($default) == "CURRENT_DATE") $default = date("Y-m-d");
$params = [];
foreach ($keys as $k) {
$params[$k] = self::p($k);
- $params[$k] = urlencode( $params[$k] ); # NB 13.02.24: could contains qutoe, spaces, ... eg: orderby
+ if (!$params[$k]) continue;
+ $params[$k] = urlencode( $params[$k] ); # NB 13.02.24: could contains auote, spaces, ... eg: orderby
if (!isset($params[$k]) or (string)$params[$k] === '') unset($params[$k]);
}
return $params;
public $table;
public $db;
private $conf;
+ private $_nopage;
public function __construct($opt=[]) {
//