X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fpoints%2Fclass_UserPoints.php;h=91e7a11eee74643647f7839082d826048c95e84a;hp=5370599b1d9d7aabcef5f83f4492ba7588c8917a;hb=ddbb50472e5383629958295be9f063cf8124b41f;hpb=d9fe7cf9bba173a486238d80c22cf9ad1bc77373 diff --git a/framework/main/classes/points/class_UserPoints.php b/framework/main/classes/points/class_UserPoints.php index 5370599b..91e7a11e 100644 --- a/framework/main/classes/points/class_UserPoints.php +++ b/framework/main/classes/points/class_UserPoints.php @@ -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();