Skip to content

Commit

Permalink
Dev: add () in test for CConsoleApplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Jun 25, 2018
1 parent 8ddd825 commit ce9d55b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Survey.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public function init()
$this->owner_id = 1;
$this->admin = App()->getConfig('siteadminname');
$this->adminemail = App()->getConfig('siteadminemail');
if(!Yii::app() instanceof CConsoleApplication) {
if(!(Yii::app() instanceof CConsoleApplication)) {
$iUserid = Permission::getUserId();
if($iUserid) {
$this->owner_id = $iUserid;
Expand Down

0 comments on commit ce9d55b

Please sign in to comment.