]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 3 Dec 2020 22:38:25 +0000 (23:38 +0100)
committerRoland Häder <roland@mxchange.org>
Thu, 3 Dec 2020 22:38:25 +0000 (23:38 +0100)
- confusing between valid() (current position is valid) and next() (next entry
  is valid) is fixed before

Signed-off-by: Roland Häder <roland@mxchange.org>
framework/main/classes/points/class_UserPoints.php
framework/main/classes/user/class_BaseUser.php

index 5370599b1d9d7aabcef5f83f4492ba7588c8917a..91e7a11eee74643647f7839082d826048c95e84a 100644 (file)
@@ -128,7 +128,7 @@ class UserPoints extends BaseFrameworkSystem implements Registerable, BookablePo
                $this->getResultInstance()->rewind();
 
                // Do we have an entry?
-               if ($this->getResultInstance()->next()) {
+               if ($this->getResultInstance()->valid()) {
                        // Get the entry
                        $currEntry = $this->getResultInstance()->current();
 
@@ -151,7 +151,7 @@ class UserPoints extends BaseFrameworkSystem implements Registerable, BookablePo
                $this->getResultInstance()->rewind();
 
                // Do we have an entry?
-               if ($this->getResultInstance()->next()) {
+               if ($this->getResultInstance()->valid()) {
                        // Get the entry
                        $currentEntry = $this->getResultInstance()->current();
 
index 1a2da22ed2f91654659e391d0cd594eace12d347..f5fb074ea0ac83ef9fe0c7830676eff9123633f4 100644 (file)
@@ -163,7 +163,7 @@ abstract class BaseUser extends BaseFrameworkSystem implements Updateable {
                $this->getResultInstance()->rewind();
 
                // Search for it
-               if ($this->getResultInstance()->next()) {
+               if ($this->getResultInstance()->valid()) {
                        // Entry found
                        $exists = true;
                } // END - if
@@ -207,7 +207,7 @@ abstract class BaseUser extends BaseFrameworkSystem implements Updateable {
                $this->getResultInstance()->rewind();
 
                // Search for it
-               if ($this->getResultInstance()->next()) {
+               if ($this->getResultInstance()->valid()) {
                        // Entry found
                        $exists = true;