File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1886,7 +1886,7 @@ public function getAllFromAbraFlexi($conditions = null, $indexBy = null)
18861886 public function getSumsFromAbraFlexi (
18871887 array $ fields ,
18881888 array $ conditions = [],
1889- ) {
1889+ ): array {
18901890 foreach ($ fields as $ field ) {
18911891 if ($ this ->getColumnInfo ($ field )['inSummary ' ] === 'false ' ) {
18921892 throw new \InvalidArgumentException (_ ('Column %s do not support summarization ' ));
@@ -1895,7 +1895,9 @@ public function getSumsFromAbraFlexi(
18951895
18961896 $ conditions ['fields ' ] = implode (', ' , array_unique ($ fields ));
18971897
1898- return $ this ->getFlexiData ('$sum ' , $ conditions );
1898+ $ summaryRaw = $ this ->getFlexiData ('$sum ' , $ conditions );
1899+
1900+ return array_key_exists ('sum ' , $ summaryRaw ) ? $ summaryRaw ['sum ' ] : [];
18991901 }
19001902
19011903 /**
You can’t perform that action at this time.
0 commit comments