]> git.defcon.no Git - hermes/blobdiff - api/lib/user_functions.php
Added auto-location of config file to scripts tool-scripts
[hermes] / api / lib / user_functions.php
index 05ce335e9cc9fade7ec5ddb873b383dddba8acca..c8556f149476fd04fcb3f2bb243f1ed92f92018e 100644 (file)
@@ -307,7 +307,7 @@ function get_userdata( $username, $domain )
        if ( $type == 'local' )
        {
                // WARNING: Note the typo in the name of the 'permittedcalls' column!
-               $query_kamailio = sprintf ("SELECT id, username, domain, password, email_address, ha1, ha1b, rpid, permitedcalls FROM %s WHERE username = '%s' AND domain = '%s'",
+               $query_kamailio = sprintf ("SELECT id, username, domain, password, email_address, ha1, ha1b, rpid, permittedcalls FROM %s WHERE username = '%s' AND domain = '%s'",
                        $config['kamailio_subscriber_table'],
                        sql_clean($username),
                        sql_clean($domain));
@@ -332,7 +332,7 @@ function get_userdata( $username, $domain )
                $user['ha1']   = $kamailio_data['ha1'];
                $user['ha1b']  = $kamailio_data['ha1b'];
                $user['rpid']  = $kamailio_data['rpid'];
-               $user['permittedcalls'] = $kamailio_data['permitedcalls'];
+               $user['permittedcalls'] = $kamailio_data['permittedcalls'];
        }
 
        return $user;