Skip to content

Commit cf12c61

Browse files
committed
line 39 support for PHP below 5.5
1 parent 36f782f commit cf12c61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RelationTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function loadAll($POST)
3636
if ($isManyMany) {
3737
$container = [];
3838
foreach ($value as $relPost) {
39-
if (!empty(array_filter($relPost))) {
39+
if (array_filter($relPost)) {
4040
$condition = [];
4141
$condition[$this->primaryKey()[0]] = $this->primaryKey;
4242
foreach ($relPost as $relAttr => $relAttrVal) {
@@ -170,6 +170,7 @@ public function saveAll()
170170
}
171171
} else {
172172
//No Children left
173+
//echo "No Children left";
173174
if (!$this->isNewRecord) {
174175
$relData = $this->getRelationData();
175176
foreach ($relData as $rel) {

0 commit comments

Comments
 (0)