Skip to content

Commit

Permalink
Corrected check conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbung committed Nov 10, 2014
1 parent f8512dc commit 0d501fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion easyblog/easyblog.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct(&$subject, $config = array())
parent::__construct($subject, $config = array());

$easyblog = JPATH_ROOT . '/administrator/components/com_easyblog/easyblog.php';
if (!JFile::exists($easyblog) || JComponentHelper::isEnabled('com_easysocial', true)) {
if (!JFile::exists($easyblog) || !JComponentHelper::isEnabled('com_easysocial', true)) {
ApiError::raiseError(404, 'Easyblog not installed');
return;
}
Expand Down
1 change: 1 addition & 0 deletions users/users/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function keygen()

$result = $kmodel->save($data);
$key = $result->hash;

//add new key in easysocial table
$easyblog = JPATH_ROOT . '/administrator/components/com_easyblog/easyblog.php';
if (JFile::exists($easyblog) && JComponentHelper::isEnabled('com_easysocial', true)) {
Expand Down

0 comments on commit 0d501fd

Please sign in to comment.