diff --git a/easyblog/easyblog.php b/easyblog/easyblog.php index 21d1c63..fb3201c 100644 --- a/easyblog/easyblog.php +++ b/easyblog/easyblog.php @@ -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; } diff --git a/users/users/login.php b/users/users/login.php index 2153406..52bbc1d 100644 --- a/users/users/login.php +++ b/users/users/login.php @@ -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)) {