reorder code for readability

This commit is contained in:
Jörn Friedrich Dreyer 2012-08-01 22:38:27 +02:00
parent 417bebd9b7
commit 14c5d08a3f
1 changed files with 2 additions and 2 deletions

View File

@ -174,12 +174,12 @@ class OC_Appconfig{
if($app!==false and $key!==false){
return false;
}
$where='WHERE';
$fields='`configvalue`';
$where='WHERE';
$params=array();
if($app!==false){
$where.=' `appid` = ?';
$fields.=', `configkey`';
$where.=' `appid` = ?';
$params[]=$app;
$key='configkey';
}else{