]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
added another check to useradd action
authorcash <cash.costello@gmail.com>
Tue, 18 Oct 2011 02:27:25 +0000 (22:27 -0400)
committercash <cash.costello@gmail.com>
Tue, 18 Oct 2011 02:27:25 +0000 (22:27 -0400)
actions/useradd.php

index be08b4be57d51a813f7824e763b7366d9e222bda..3df41af7920870f4380377babda2eba00ad3f61a 100644 (file)
@@ -37,7 +37,7 @@ try {
 
        if ($guid) {
                $new_user = get_entity($guid);
-               if (($guid) && ($admin)) {
+               if ($uew_user && $admin && elgg_is_admin_logged_in()) {
                        $new_user->makeAdmin();
                }