Skip to content
Browse files

[#28237] PHP Notice in back end login when cache enabled.

  • Loading branch information...
1 parent 3ed1004 commit 6ae6176c8ab9f84f0addb1f421acc4c7e76236ec @dextercowley dextercowley committed Mar 15, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 administrator/components/com_login/models/login.php
  2. +1 −0 installation/CHANGELOG
View
2 administrator/components/com_login/models/login.php
@@ -119,6 +119,7 @@ protected static function _load($module)
$cache = JFactory::getCache ('com_modules', '');
$cacheid = md5(serialize(array( $clientId, $lang)));
+ $loginmodule = array();
if (!($clean = $cache->get($cacheid))) {
$db = JFactory::getDbo();
@@ -141,7 +142,6 @@ protected static function _load($module)
// Set the query
$db->setQuery($query);
$modules = $db->loadObjectList();
- $loginmodule = array();
if ($db->getErrorNum()){
JError::raiseWarning(500, JText::sprintf('JLIB_APPLICATION_ERROR_MODULE_LOAD', $db->getErrorMsg()));
View
1 installation/CHANGELOG
@@ -28,6 +28,7 @@ $ -> Language fix or change
15-Mar-2012 Mark Dexter
# [#27759] Alternative Sample Data Files (blog and brochure)
+ # [#28237] PHP Notice in back end login when cache enabled.
09-Mar-2012 Christophe Demko
# [#27052] *content menu displayed when disable component content

0 comments on commit 6ae6176

Please sign in to comment.
Something went wrong with that request. Please try again.