Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / libs / surfbar_functions.php
index b87c1ca4d8307b8ec8eb99a0c5a0f0ed849ed3bb..7cd5feef62ab8230a1afc5571b14ff83c065acc5 100644 (file)
@@ -637,7 +637,7 @@ ORDER BY
                ), __FUNCTION__, __LINE__);
 
        // Is there at least one record?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // Then load all!
                while ($dataRow = sqlFetchArray($result)) {
                        // Shall we group these results?
@@ -1665,7 +1665,7 @@ ORDER BY
                array(getMemberId()), __FUNCTION__, __LINE__);
 
        // Are there entries?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // Load all rows
                while ($row = sqlFetchArray($result)) {
                        // Add the row
@@ -1690,7 +1690,7 @@ function getSurfbarArrayFromStatus ($status) {
                array($status), __FUNCTION__, __LINE__);
 
        // Some entries there?
-       if (!ifSqlHasZeroNums($result)) {
+       if (!ifSqlHasZeroNumRows($result)) {
                // Load all actions
                // @TODO This can be somehow rewritten
                while ($content = sqlFetchArray($result)) {