Undefined variable: key

Bug #545969 reported by shartmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
chive
Fix Released
Undecided
Matthias Burtscher
0.1
Fix Released
Undecided
Matthias Burtscher

Bug Description

Source File

/var/www/chive/protected/components/messages/CXmlMessageSource.php(153)

00141: $messageFile = $this->basePath . DIRECTORY_SEPARATOR . $language . DIRECTORY_SEPARATOR . $category . '.xml';
00142: if(is_file($messageFile))
00143: {
00144: $xml = simplexml_load_file($messageFile);
00145:
00146: foreach($xml AS $entry)
00147: {
00148: $messages[(string)$entry->attributes()->id] = (string)$entry;
00149: }
00150:
00151: if(!is_null($cache))
00152: {
00153: $cache->set($key, $messages, $this->cachingDuration);
00154: }
00155: }
00156:
00157: return $messages;
00158: }
00159:
00160: }

Stack Trace

#0 /var/www/chive/protected/components/messages/CXmlMessageSource.php(129): CXmlMessageSource->loadMessages()
#1 /var/www/chive/protected/components/messages/CXmlMessageSource.php(101): CXmlMessageSource->loadMessages()
#2 /var/www/chive/index.php(66): CXmlMessageSource->publishJavaScriptMessages()

Related branches

Changed in chive:
status: New → In Progress
milestone: none → 0.3.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.