[0000290] Can't upload files
[fa-stable.git] / admin / db / company_db.inc
index 821caf601f4dad58ca54fbcb80e545c737210ca6..e13690926a47b2b2a554f7cb88094dd6f0d7d710 100644 (file)
@@ -84,7 +84,7 @@ function get_base_sales_type()
 function get_company_extensions($id = -1) {
        global $path_to_root;
 
-       $file = $path_to_root.($id == -1 ? '' : '/company/'.$id).'/installed_extensions.php';
+       $file = $path_to_root.($id == -1 ? '' : '/company/'.(int)$id).'/installed_extensions.php';
        $installed_extensions = array();
        if (is_file($file)) {
                include($file);