Unnecesary direct access to user setting superseded by calls to user_* functions.
[fa-stable.git] / admin / create_coy.php
index c84219b3e941bb29224c7de9efb87280c7a93075..80c747152cc75335d1c15016d9feb2ce6abce6a0 100644 (file)
@@ -240,7 +240,7 @@ function display_companies()
 {
        global $def_coy, $db_connections;
 
-       $coyno = $_SESSION["wa_current_user"]->company;
+       $coyno = user_company();
 
        echo "
                <script language='javascript'>