Skip to content

Commit

Permalink
* adjust code.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyidong committed Jul 8, 2015
1 parent 5378faf commit 700292f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/router.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ public function loadLang($moduleName)
if($moduleName == 'common')
{
$productproject = false;
if($this->dbh) $productproject = $this->dbh->query('SELECT value FROM' . TABLE_CONFIG . "WHERE `owner`='system' AND `module`='custom' AND `key`='productproject'")->fetch();
if($this->dbh and !empty($this->config->db->name)) $productproject = $this->dbh->query('SELECT value FROM' . TABLE_CONFIG . "WHERE `owner`='system' AND `module`='custom' AND `key`='productproject'")->fetch();

$productcommon = $projectcommon = 0;
if($productproject)
Expand Down

0 comments on commit 700292f

Please sign in to comment.