Passed
Push — master ( e85ccb...42b683 )
by
unknown
05:52
created
server/includes/core/class.language.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -213,8 +213,9 @@  discard block
 block discarded – undo
213 213
 		}
214 214
 		$handle = opendir(LANGUAGE_DIR);
215 215
 		if ($handle == false) {
216
-			if ($memid)
217
-				@shm_detach($memid);
216
+			if ($memid) {
217
+							@shm_detach($memid);
218
+			}
218 219
 			return ['grommunio_web' => []];
219 220
 		}
220 221
 		$last_id = 1;
@@ -240,8 +241,9 @@  discard block
 block discarded – undo
240 241
 				}
241 242
 			}
242 243
 			$cache_table[$entry] = $last_id;
243
-			if ($memid)
244
-				@shm_put_var($memid, $last_id, $translations);
244
+			if ($memid) {
245
+							@shm_put_var($memid, $last_id, $translations);
246
+			}
245 247
 			if (strcmp($entry, $this->getSelected()) == 0) {
246 248
 				$ret_val = $translations;
247 249
 			}
Please login to merge, or discard this patch.