This commit is contained in:
wangyidong
2024-01-03 14:24:51 +08:00
parent 80795da14a
commit dbbf8aed8b
4 changed files with 17 additions and 14 deletions
+2 -7
View File
@@ -276,7 +276,7 @@ class blockModel extends model
->fetch('top');
if(!$top) $top = 0;
return $top;
return (int)$top;
}
/**
@@ -291,12 +291,7 @@ class blockModel extends model
{
foreach($layout as $blockID => $block)
{
$this->dao->update(TABLE_BLOCK)
->set('left')->eq($block['left'])
->set('top')->eq($block['top'])
->where('id')->eq($blockID)
->exec();
$this->dao->update(TABLE_BLOCK)->set('left')->eq($block['left'])->set('top')->eq($block['top'])->where('id')->eq($blockID)->exec();
if(dao::isError()) return false;
}
return true;