]> git.nbdom.net Git - nb.git/commitdiff
lib/php/out.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 8 Oct 2024 14:05:13 +0000 (16:05 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 8 Oct 2024 14:05:13 +0000 (16:05 +0200)
lib/php/db.php
lib/php/out.php

index 01e4fc025d50de6c7559266a2d7e7a6fe6f38519..c7fb2101d7835c2aa29d32a877a861727ece5ed0 100644 (file)
@@ -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;
                        }
index b17fcb3d08b045f548011427ed380cf8377a9bb2..5d9b674f950e32953cf46259eaadcdb21807fd5e 100644 (file)
@@ -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();