Skip to content
Browse files

Replaced the uses of getUser() with the proper counterparts within Rm…

…admin.php
  • Loading branch information...
1 parent 7758a2f commit 0af3877bacd9305b8168b6c2b44f06b3b8063458 @caseyw committed Jun 16, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/system/application/libraries/wsactions/event/Rmadmin.php
View
8 src/system/application/libraries/wsactions/event/Rmadmin.php
@@ -60,10 +60,10 @@ public function run() {
// Event ID must be an integer
if (!is_int($eid)) { return array('output'=>'json','data'=>array('items'=>array('msg'=>'Invalid Event ID!'))); }
-
- if (!is_int($user)) {
- $udata=$this->CI->um->getUser($user);
- if (!empty($udata)) {
+
+ if (!is_int($user)) {
+ $udata=$this->CI->um->getUserByUsername($user);
+ if (!empty($udata)) {
$user=$udata[0]->ID;
} else { return false; }
}

0 comments on commit 0af3877

Please sign in to comment.
Something went wrong with that request. Please try again.