tidy up a bunch of lint errors

This commit is contained in:
Shish
2014-03-17 22:05:37 +00:00
parent 6f0d898c28
commit da29912646
12 changed files with 27 additions and 27 deletions

View File

@@ -182,14 +182,18 @@ class AdminPage extends Extension {
case 'sqlite':
$cmd = "sqlite3 $database .dump";
break;
default:
$cmd = false;
}
//FIXME: .SQL dump is empty if cmd doesn't exist
$page->set_mode("data");
$page->set_type("application/x-unknown");
$page->set_filename('shimmie-'.date('Ymd').'.sql');
$page->set_data(shell_exec($cmd));
if($cmd) {
$page->set_mode("data");
$page->set_type("application/x-unknown");
$page->set_filename('shimmie-'.date('Ymd').'.sql');
$page->set_data(shell_exec($cmd));
}
return false;
}