fixed same bug
This commit is contained in:
+11
-1
@@ -5,7 +5,7 @@
|
||||
Module : /Web/Table.php
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : January 16th, 2008.
|
||||
Last Modified : August 27th, 2026.
|
||||
Last Modified : September 16th, 2026.
|
||||
|
||||
(c) 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
@@ -208,6 +208,11 @@ final class Table {
|
||||
$tval = $row[$col['a']];
|
||||
if (is_array($col['f'])) {
|
||||
$tval = $col['f'][$tval];
|
||||
} else if (!is_null($col['f']) && str_contains($col['f'], '::')) {
|
||||
$tclass = explode("::", $col['f']);
|
||||
if (class_exists($tclass[0]) && method_exists($tclass[0], $tclass[1])) {
|
||||
$tval = call_user_func($col['f'], $tval);
|
||||
}
|
||||
} else if (!is_null($col['f']) && function_exists($col['f'])) {
|
||||
$tval = call_user_func($col['f'], $tval);
|
||||
} else if (is_string($tval)) {
|
||||
@@ -291,6 +296,11 @@ final class Table {
|
||||
$tval = $row[$col['a']];
|
||||
if (is_array($col['f'])) {
|
||||
$tval = $col['f'][$tval];
|
||||
} else if (!is_null($col['f']) && str_contains($col['f'], '::')) {
|
||||
$tclass = explode("::", $col['f']);
|
||||
if (class_exists($tclass[0]) && method_exists($tclass[0], $tclass[1])) {
|
||||
$tval = call_user_func($col['f'], $tval);
|
||||
}
|
||||
} else if (!is_null($col['f']) && function_exists($col['f'])) {
|
||||
$tval = call_user_func($col['f'], $tval);
|
||||
} else if (is_string($tval)) {
|
||||
|
||||
Reference in New Issue
Block a user