Skip to content
Browse files

Replace use of undefined

  • Loading branch information...
1 parent 939cba0 commit 09ab70c4592e96962ad13b3ba4e52f3386e99c74 @mbabker mbabker committed Oct 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 libraries/legacy/component/helper.php
View
4 libraries/legacy/component/helper.php
@@ -387,14 +387,14 @@ protected static function _load($option)
catch (RuntimeException $e)
{
// Fatal error.
- JLog::add(JText::sprintf('JLIB_APPLICATION_ERROR_COMPONENT_NOT_LOADING', $option, $error), JLog::WARNING, 'jerror');
+ JLog::add(JText::sprintf('JLIB_APPLICATION_ERROR_COMPONENT_NOT_LOADING', $option, $e->getMessage()), JLog::WARNING, 'jerror');
return false;
}
if (empty(self::$components[$option]))
{
// Fatal error.
- JLog::add(JText::sprintf('JLIB_APPLICATION_ERROR_COMPONENT_NOT_LOADING', $option, $error), JLog::WARNING, 'jerror');
+ JLog::add(JText::sprintf('JLIB_APPLICATION_ERROR_COMPONENT_NOT_LOADING', $option), JLog::WARNING, 'jerror');
return false;
}

0 comments on commit 09ab70c

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