diff --git a/api/v1/entries/hostsubmit.php b/api/v1/entries/hostsubmit.php index 3f6cbd6f26..bfb5860686 100644 --- a/api/v1/entries/hostsubmit.php +++ b/api/v1/entries/hostsubmit.php @@ -63,7 +63,7 @@ class hostSubmitEntry extends baseEntry if($imageInfo->from != 'zentao' && in_array($imageInfo->status, array('creating', 'restoring'))) { - $hostID = is_numeric($imageInfo->snapshot) ? $imageInfo->from : $imageInfo->host; + $hostID = is_numeric($imageInfo->from) ? $imageInfo->from : $imageInfo->host; $this->dao->update(TABLE_ZAHOST)->data(array("status" => "wait"))->where("id")->eq($hostID)->exec(); }