Commit 91aa4f7e authored by pkdille's avatar pkdille

Remove empty statements (seen on quality.tiki.org

parent 20a60b18
......@@ -1795,9 +1795,7 @@ class TrackerLib extends TikiLib
$is_visible = !isset($array["isHidden"]) || $array["isHidden"] == 'n';
if ($itemId && $array['type'] == 'q') {
// do not change autoincrement of an item
} else {
if ($itemId && $array['type'] != 'q') {
$conditions = array(
'itemId' => (int) $currentItemId,
'fieldId' => (int) $fieldId,
......
......@@ -263,8 +263,7 @@ function wikiplugin_split_cell($data, $pos, $cell)
} else {
$end = $pos + strpos(substr($data, $pos), $matches[1]);
$start_next_tag = $end + strlen($matches[1]);
if (substr($matches[1], 0, 4) == '----') {
} else if (substr($matches[1], 0, 3) == '@@@' || $matches[1] == '---') {
if (substr($matches[1], 0, 3) == '@@@' || $matches[1] == '---') {
if (!$cell)
break;
--$cell;
......
......@@ -851,9 +851,7 @@ if ( !isset($_REQUEST['preview']) && !isset($_REQUEST['save']) ) {
$smarty->assign('allowhtml','y');
} elseif ($_SESSION['wysiwyg'] === 'y') {
if ($prefs['wysiwyg_htmltowiki'] === 'y') {
if ($edit_data != 'ajax error') {
//$parsed = $editlib->parseToWysiwyg($edit_data);
} else {
if ($edit_data == 'ajax error') {
unset($_REQUEST['save']); // don't save an ajax error
}
} else {
......
......@@ -90,8 +90,6 @@ if (isset($_REQUEST['s']) && !empty($_REQUEST['s']) ) { //save
if ( $_REQUEST['sheetId'] ) {
$result = $sheetlib->save_sheet( $_REQUEST['s'], $_REQUEST["sheetId"] );
} elseif ( $_REQUEST['file'] ) {
//$result = $sheetlib->save_sheet( $_REQUEST['s'], null, $_REQUEST['file'], $_REQUEST['type'] );
}
die($result);
//Clone
......
......@@ -130,10 +130,7 @@ function showWebmailMessage(inMsg) {
});
");
} else { // end if (!isset($_REQUEST['callback'])) - AJAX call
}
if (!empty($_REQUEST['action'])) {
switch ($_REQUEST['action']) { // placeholder: more to do
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment