Fix error in admin ajax model
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 26 Oct 2017 18:58:19 +0000 (14:58 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 26 Oct 2017 18:58:19 +0000 (14:58 -0400)
This is for adding reg rates in the admin.

models/admin/ajax/regAdmin/regRates.php

index 7bde1bc..091d2b6 100644 (file)
@@ -109,7 +109,7 @@ class GlmMembersAdmin_registrations_ajax_regRates extends GlmDataRegistrationsRe
             case 'add':
 
                 // Make sure we got a parent ID with the data
-                if (isset($modelData['parent']) || (modelData['parent']-0) > 0) {
+                if (isset($modelData['parent']) || ($modelData['parent']-0) > 0) {
 
                     // Try to insert the rate (level) data
                     $res = $this->wpdb->insert(