Local fixes to invoice display and retrieve traffic data

This commit is contained in:
Deon George
2011-08-02 16:48:41 +10:00
parent 41eec89afa
commit 5953e28f22
9 changed files with 1039 additions and 15 deletions

View File

@@ -39,7 +39,9 @@ abstract class StaticList {
protected static function _display($id) {
$table = static::factory()->table();
if (! $table OR empty($table[$id]))
if (! $table)
return 'No Table';
elseif (empty($table[$id]))
return sprintf('No Value (%s)',$id);
else
return $table[$id];