Moved some more common code into lnapp
This commit is contained in:
@@ -63,7 +63,11 @@ abstract class lnApp_Table {
|
||||
$x = $d;
|
||||
|
||||
else
|
||||
$x = $d->display($key);
|
||||
$x = isset($d->{$key}) ? $d->display($key) : '';
|
||||
|
||||
// We cant display array values
|
||||
if (is_array($x))
|
||||
$x = array_shift($x);
|
||||
|
||||
if (isset($this->prepend[$key]) AND $x) {
|
||||
foreach ($this->prepend[$key] as $act => $data) {
|
||||
|
Reference in New Issue
Block a user