Commit bcc667e2 authored by Bong Cosca's avatar Bong Cosca
Browse files

Prevent ONERROR recursion

parent 14f2e431
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -894,8 +894,9 @@ final class Base {
		);
		if (ob_get_level())
			ob_end_clean();
		if ((!$this->hive['ONERROR'] ||
			$this->call($this->hive['ONERROR'],$this)===FALSE) &&
		$handler=$this->hive['ONERROR'];
		$this->hive['ONERROR']=NULL;
		if ((!$handler || $this->call($handler,$this)===FALSE) &&
			!$prior && PHP_SAPI!='cli' && !$this->hive['QUIET'])
			echo $this->hive['AJAX']?
				json_encode($this->hive['ERROR']):