Moved some more common code into lnapp

This commit is contained in:
Deon George
2014-02-17 11:29:11 +11:00
parent 7a78a9a7d6
commit b2912e4007
11 changed files with 190 additions and 6 deletions

View File

@@ -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) {