* Optimize the code.
This commit is contained in:
@@ -1141,10 +1141,8 @@ class docModel extends model
|
||||
else
|
||||
{
|
||||
$docLibList = $this->dao->select('*')->from(TABLE_DOCLIB)->where('deleted')->eq(0)->andWhere('type')->eq($type)->orderBy('`order`, id desc')->fetchAll();
|
||||
if(!empty($docLibList))
|
||||
{
|
||||
foreach($docLibList as $docLib) $docLibs[] = $docLib;
|
||||
}
|
||||
if(empty($docLibList)) return $libs;
|
||||
foreach($docLibList as $docLib) $docLibs[] = $docLib;
|
||||
}
|
||||
|
||||
$i = 1;
|
||||
|
||||
Reference in New Issue
Block a user