Code Duplication    Length = 4-4 lines in 2 locations

main/inc/lib/system_announcements.lib.php 2 locations

@@ 349-352 (lines=4) @@
346
            return false;
347
        }
348
349
        if (strlen(trim($title)) == 0) {
350
            Display::display_normal_message(get_lang('InvalidTitle'));
351
352
            return false;
353
        }
354
355
        $start = api_get_utc_datetime($date_start);
@@ 542-545 (lines=4) @@
539
			return false;
540
		}
541
542
		if (strlen(trim($title)) == 0) {
543
			Display::display_normal_message(get_lang('InvalidTitle'));
544
545
			return false;
546
		}
547
548
        $start = api_get_utc_datetime($date_start);