mirror of
https://github.com/openvk/openvk
synced 2025-04-23 08:33:02 +03:00
limites
This commit is contained in:
parent
f4df916a7a
commit
28655503e1
2 changed files with 20 additions and 16 deletions
|
@ -90,14 +90,16 @@ final class CommentPresenter extends OpenVKPresenter
|
||||||
$un = rtrim($this->postParam("videos"), ",");
|
$un = rtrim($this->postParam("videos"), ",");
|
||||||
$arr = explode(",", $un);
|
$arr = explode(",", $un);
|
||||||
|
|
||||||
foreach($arr as $dat) {
|
if(sizeof($arr) < 11) {
|
||||||
$ids = explode("_", $dat);
|
foreach($arr as $dat) {
|
||||||
$video = (new Videos)->getByOwnerAndVID((int)$ids[0], (int)$ids[1]);
|
$ids = explode("_", $dat);
|
||||||
|
$video = (new Videos)->getByOwnerAndVID((int)$ids[0], (int)$ids[1]);
|
||||||
if(!$video || $video->isDeleted())
|
|
||||||
continue;
|
if(!$video || $video->isDeleted())
|
||||||
|
continue;
|
||||||
$videos[] = $video;
|
|
||||||
|
$videos[] = $video;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -299,14 +299,16 @@ final class WallPresenter extends OpenVKPresenter
|
||||||
$un = rtrim($this->postParam("videos"), ",");
|
$un = rtrim($this->postParam("videos"), ",");
|
||||||
$arr = explode(",", $un);
|
$arr = explode(",", $un);
|
||||||
|
|
||||||
foreach($arr as $dat) {
|
if(sizeof($arr) < 11) {
|
||||||
$ids = explode("_", $dat);
|
foreach($arr as $dat) {
|
||||||
$video = (new Videos)->getByOwnerAndVID((int)$ids[0], (int)$ids[1]);
|
$ids = explode("_", $dat);
|
||||||
|
$video = (new Videos)->getByOwnerAndVID((int)$ids[0], (int)$ids[1]);
|
||||||
if(!$video || $video->isDeleted())
|
|
||||||
continue;
|
if(!$video || $video->isDeleted())
|
||||||
|
continue;
|
||||||
$videos[] = $video;
|
|
||||||
|
$videos[] = $video;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue