* @return void
*/
public final function addEntry ($key, $value) {
+ // Is the array there?
+ if (!isset($this->rawEntries[$key])) {
+ // Then intialize it here
+ $this->rawEntries[$key] = array();
+ } // END - if
+
// Simply add it
array_push($this->rawEntries[$key], $value);
}
$entries = $this->rawEntries;
// Is $key set?
- if (!is_null($key)) {
+ if ((!is_null($key)) && (isset($this->rawEntries[$key]))) {
// Then use this entry
$entries = $this->rawEntries[$key];
} // END - if