Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 159321c

Browse files
author
Charles Ma
committed
BUG: refs #164 Fixed dashboard
1 parent 422e3df commit 159321c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/AppController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function preDispatch()
9494
if(count($tmp) == 2)
9595
{
9696
$userDao = $userModel->load($tmp[0]);
97-
if($userDao!= false && md5($userDao->getPassword()) == $tmp[1])
97+
if($userDao != false && md5($userDao->getPassword()) == $tmp[1])
9898
{
9999
$user->Dao = $userDao;
100100
}

core/controllers/ItemController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function viewAction()
106106
echo JsonComponent::encode(array(true, $this->t('Changes saved')));
107107
return;
108108
}
109-
if(isset($editMetadata)&& !empty($editMetadata) && $this->view->isModerator) //remove users from group
109+
if(isset($editMetadata) && !empty($editMetadata) && $this->view->isModerator) //remove users from group
110110
{
111111
$metadataId = $this->_getParam('metadataId');
112112
$metadatatype = $this->_getParam('metadatatype');

0 commit comments

Comments
 (0)