mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing notice errors caused by accessing headers in po files that
don't exist. Fixes #1515 Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
parent
ca3e606ec8
commit
0e7f2efdb1
1 changed files with 4 additions and 2 deletions
|
@ -321,8 +321,10 @@ class I18n extends Object {
|
|||
$this->__domains[$domain][$this->__lang][$this->category] = array();
|
||||
return $domain;
|
||||
}
|
||||
|
||||
if ($head = $this->__domains[$domain][$this->__lang][$this->category][""]) {
|
||||
|
||||
if (isset($this->__domains[$domain][$this->__lang][$this->category][""])) {
|
||||
$head = $this->__domains[$domain][$this->__lang][$this->category][""];
|
||||
|
||||
foreach (explode("\n", $head) as $line) {
|
||||
$header = strtok($line,":");
|
||||
$line = trim(strtok("\n"));
|
||||
|
|
Loading…
Reference in a new issue