@@ 779-789 (lines=11) @@ | ||
776 | } |
|
777 | $where[] = "e.subtype=$subtype"; |
|
778 | } |
|
779 | if ($owner_guid != "") { |
|
780 | if (!is_array($owner_guid)) { |
|
781 | $owner_guid = (int)$owner_guid; |
|
782 | $where[] = "e.container_guid = '$owner_guid'"; |
|
783 | } else if (sizeof($owner_guid) > 0) { |
|
784 | // Cast every element to the owner_guid array to int |
|
785 | $owner_guid = array_map("sanitise_int", $owner_guid); |
|
786 | $owner_guid = implode(",", $owner_guid); |
|
787 | $where[] = "e.container_guid in ({$owner_guid})"; |
|
788 | } |
|
789 | } |
|
790 | if ($site_guid > 0) { |
|
791 | $where[] = "e.site_guid = {$site_guid}"; |
|
792 | } |
@@ 1460-1469 (lines=10) @@ | ||
1457 | } |
|
1458 | ||
1459 | if ($owner_guid != "") { |
|
1460 | if (!is_array($owner_guid)) { |
|
1461 | $owner_array = array($owner_guid); |
|
1462 | $owner_guid = (int) $owner_guid; |
|
1463 | $where[] = "e.owner_guid = '$owner_guid'"; |
|
1464 | } else if (sizeof($owner_guid) > 0) { |
|
1465 | $owner_array = array_map('sanitise_int', $owner_guid); |
|
1466 | // Cast every element to the owner_guid array to int |
|
1467 | $owner_guid = implode(",", $owner_guid); |
|
1468 | $where[] = "e.owner_guid in ({$owner_guid})"; |
|
1469 | } |
|
1470 | if (is_null($container_guid)) { |
|
1471 | $container_guid = $owner_array; |
|
1472 | } |