Bug fix: Undefined index $values[9]

RippingCluster_LogEntry overwrote base class field list, causing
undefined index notices when the base class was explicitly used.
This commit is contained in:
2011-06-28 20:06:24 +01:00
parent 5adf9170c4
commit 3b22b0f2c9

View File

@@ -4,8 +4,16 @@ class RippingCluster_LogEntry extends SihnonFramework_LogEntry {
protected $job_id;
protected static $types;
public static function initialise() {
self::$types['job_id'] = 'int';
// Copy the list of datatypes from the parent
// We can't modify it in place, else we'll break any logging done inside the SihnonFramework tree
// or other subclass trees.
static::$types = parent::$types;
// Add the new data types for this subclass
static::$types['job_id'] = 'int';
}
protected function __construct($level, $category, $ctime, $pid, $file, $line, $message, $job_id) {