Permalink
Browse files

Replace @@missing@@ when source is missing (#838)

  • Loading branch information...
TheoChevalier authored and flodolo committed Jan 17, 2017
1 parent fb20508 commit 2876888082c38f26dce3c169d3c1fe6556025a1d
Showing with 6 additions and 2 deletions.
  1. +3 −1 app/classes/Transvision/ShowResults.php
  2. +3 −1 app/views/results_entities.php
@@ -394,7 +394,9 @@ public static function resultsTable($search_object, $search_results, $page)
$meta_source = $meta_target = $meta_target2 = '';
// If there is no source_string, display an error, otherwise display the string + meta links
if (! $source_string) {
if ($source_string == '@@missing@@') {
$source_string = '<em class="error">Warning: Source string is missing</em>';
} elseif (! $source_string) {
$source_string = '<em class="error">Warning: Source string is empty</em>';
} else {
$meta_source = "
@@ -134,7 +134,9 @@
$error_message = ShowResults::buildErrorString($source_string, $target_string);
// If there is no source_string, display an error, otherwise display the string + meta links
if (! $source_string) {
if ($source_string == '@@missing@@') {
$source_string = '<em class="error">Warning: Source string is missing</em>';
} elseif (! $source_string) {
$source_string = '<em class="error">Warning: Source string is empty</em>';
} else {
$meta_source = "

0 comments on commit 2876888

Please sign in to comment.