|
|
@@ -29,10 +29,7 @@
|
|
|
require_once "resources/check_auth.php";
|
|
|
|
|
|
//check permissions
|
|
|
- if (permission_exists('sql_query')) {
|
|
|
- //access granted
|
|
|
- }
|
|
|
- else {
|
|
|
+ if (!permission_exists('sql_query')) {
|
|
|
echo "access denied";
|
|
|
exit;
|
|
|
}
|
|
|
@@ -150,8 +147,8 @@ if ($db_type == "sqlite") {
|
|
|
|
|
|
$str_data_type = '';
|
|
|
$string_array = explode(',', $string);
|
|
|
- foreach($string_array as $lnvalue) {
|
|
|
- $fieldlistarray = explode (" ", $value);
|
|
|
+ foreach($string_array as $value) {
|
|
|
+ $field_list_array = explode (" ", $value);
|
|
|
unset($fieldarray, $string, $field);
|
|
|
}
|
|
|
|