From: Nicolas Boisselier Date: Wed, 24 Aug 2016 15:32:58 +0000 (+0200) Subject: fix db bug X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=63eddea0bde34b041e4852a7605096b7ca151430;p=nb.git fix db bug --- diff --git a/lib/php/db.php b/lib/php/db.php index eff8166f..effc423d 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -572,7 +572,8 @@ class Db extends nb { # Param - Default base on order hight num value if (!$id) { - self::pset('db',self::ar_first($conf,true)); + $id = self::ar_first($conf,true); + self::pset('db',$id); } if (!isset($conf[$id])) {