From 37ac56a9cf6449de54803e63c34edd565e3d5c3b Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 8 Oct 2024 16:05:13 +0200 Subject: [PATCH] lib/php/out.php --- lib/php/db.php | 2 +- lib/php/out.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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(); -- 2.47.3