From: Nicolas Boisselier Date: Tue, 8 Oct 2024 14:05:13 +0000 (+0200) Subject: lib/php/out.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=37ac56a9cf6449de54803e63c34edd565e3d5c3b;p=nb.git lib/php/out.php --- diff --git a/lib/php/db.php b/lib/php/db.php index 01e4fc02..c7fb2101 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -1318,7 +1318,7 @@ class Db extends nb { */ public static function paliases($aliases,&$changed=[]) { foreach ($aliases as $short=>$long) { - if (!preg_match('/^\s*$/',self::p($short))) { + if (!preg_match('/^\s*$/',self::p($short,''))) { self::pset($long,self::p($short)); $changed[$short] = $long; } diff --git a/lib/php/out.php b/lib/php/out.php index b17fcb3d..5d9b674f 100644 --- a/lib/php/out.php +++ b/lib/php/out.php @@ -81,9 +81,9 @@ Class Out extends Nb { if (!isset($o[$k])) { # Cache methods - if (!isset($methods)) - foreach (get_class_methods(get_class()) as $m) $methods[$m]=1 - ; + if (!isset($methods)) { + foreach (get_class_methods('Out') as $m) $methods[$m]=1; + } # Try internal function $call = $k.'_'.self::type();