File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66session_start ();
77$ bg =2 ;
88$ step =20 ;
9- $ version ="3.16.1 " ;
9+ $ version ="3.16.2 " ;
1010$ bbs =['False ' ,'True ' ];
1111$ deny =['sqlite_sequence ' ];
1212$ js =(file_exists ('jquery.js ' )?"/jquery.js " :"https://code.jquery.com/jquery-1.12.4.min.js " );
@@ -1381,15 +1381,16 @@ public function getTables($db) {
13811381 $ ftype =$ ed ->post ('ftype ' ); $ ffmt =$ ed ->post ('ffmt ' );
13821382 $ dbs =(empty ($ ed ->sg [1 ])?($ ed ->post ('dbs ' )?$ ed ->post ('dbs ' ):[]):[$ ed ->sg [1 ]]);
13831383 if ($ ffmt [0 ]!='sqlite ' ) {
1384- if (( !empty ($ ed ->sg [1 ]) && $ ed ->post ('tables ' )=='' ) || ( empty ( $ ed -> sg [ 1 ]) && $ ed -> post ( ' dbs ' )== '' ) ) {
1385- $ ed ->redir ("31 " .( empty ( $ ed ->sg [1 ])? '' : ' / ' . $ ed -> sg [ 1 ]) ,['err ' =>"You didn't selected any DB/Table " ]);
1384+ if (!empty ($ ed ->sg [1 ]) && $ ed ->post ('tables ' )=='' ) {
1385+ $ ed ->redir ("31/ " . $ ed ->sg [1 ],['err ' =>"You didn't selected any table " ]);
13861386 }
13871387 if ($ ed ->post ('fopt ' )=='' && in_array ($ ffmt [0 ],['sql ' ,'doc ' ,'xml ' ])) {//export options
13881388 $ ed ->redir ("31 " .(empty ($ ed ->sg [1 ])?'' :'/ ' .$ ed ->sg [1 ]),['err ' =>"You didn't selected any option " ]);
13891389 } else {
13901390 $ fopt =$ ed ->post ('fopt ' );
13911391 }
13921392 }
1393+ if (empty ($ ed ->sg [1 ]) && $ ed ->post ('dbs ' )=='' ) $ ed ->redir ("31 " ,['err ' =>"You didn't selected any DB " ]);
13931394 if (!in_array ($ ffmt [0 ],['sql ' ,'sqlite ' ])) {
13941395 $ db =$ dbs [0 ];
13951396 $ ed ->con =new DBT ($ ed ->dir .$ db .$ ed ->ext );
You can’t perform that action at this time.
0 commit comments