We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b031e6 commit 3d6a8deCopy full SHA for 3d6a8de
1 file changed
src/Supporting/FileMakerRelation.php
@@ -335,15 +335,24 @@ public function getPortalNames()
335
{
336
$list = [];
337
if (isset($this->data)) {
338
- foreach ($this->data as $key) {
339
- if (property_exists($key, 'portalData')) {
340
- foreach ($key->portalData as $name => $val) {
341
- array_push($list, $name);
+ switch ($this->result) {
+ case 'OK':
+ foreach ($this->data as $key) {
+ if (property_exists($key, 'portalData')) {
342
+ foreach ($key->portalData as $name => $val) {
343
+ array_push($list, $name);
344
+ }
345
346
347
+ break;
348
+ case 'RECORD':
349
+ if (property_exists($this->data, 'portalData')) {
350
+ foreach ($this->data->portalData as $name => $val) {
351
352
353
}
- }
354
355
-
356
return $list;
357
358
0 commit comments