]> git.mxchange.org Git - mailer.git/blobdiff - inc/classes/main/points/class_UserPoints.php
Code base synced
[mailer.git] / inc / classes / main / points / class_UserPoints.php
index 6a9d88f172e03ff9b98df8b7c989b9833cc22264..fb0f169e12e000e7978373d32797723f8a1b6082 100644 (file)
@@ -58,6 +58,7 @@ class UserPoints extends BaseFrameworkSystem implements Registerable {
         *
         * @param       $action                 The action or configuration entry plus prefix the user wants to perform
         * @return      $hasRequired    Wether the user has the required points
+        * @todo        Finish loading part of points
         */
        public function ifUserHasRequiredPoints ($action) {
                // Default is that everyone is poor... ;-)
@@ -71,7 +72,7 @@ class UserPoints extends BaseFrameworkSystem implements Registerable {
 
                // Now get a search criteria and set the user's name as criteria
                $criteriaInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
-               $criteriaInstance->addCriteria('points_uid', $this->getUserInstance()->getUserName());
+               $criteriaInstance->addCriteria("points_uid", $this->getUserInstance()->getUserName());
                $criteriaInstance->setLimit(1);
 
                // Get result back