Skip to content

Commit 0d501fd

Browse files
committed
Corrected check conditions
1 parent f8512dc commit 0d501fd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

easyblog/easyblog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct(&$subject, $config = array())
1717
parent::__construct($subject, $config = array());
1818

1919
$easyblog = JPATH_ROOT . '/administrator/components/com_easyblog/easyblog.php';
20-
if (!JFile::exists($easyblog) || JComponentHelper::isEnabled('com_easysocial', true)) {
20+
if (!JFile::exists($easyblog) || !JComponentHelper::isEnabled('com_easysocial', true)) {
2121
ApiError::raiseError(404, 'Easyblog not installed');
2222
return;
2323
}

users/users/login.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ function keygen()
7575

7676
$result = $kmodel->save($data);
7777
$key = $result->hash;
78+
7879
//add new key in easysocial table
7980
$easyblog = JPATH_ROOT . '/administrator/components/com_easyblog/easyblog.php';
8081
if (JFile::exists($easyblog) && JComponentHelper::isEnabled('com_easysocial', true)) {

0 commit comments

Comments
 (0)