mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:00:16 +00:00
bogus 'no results' message on search page
This commit is contained in:
parent
439ee37f99
commit
508636082e
3 changed files with 3 additions and 10 deletions
2
boot.php
2
boot.php
|
@ -2,7 +2,7 @@
|
|||
|
||||
set_time_limit(0);
|
||||
|
||||
define ( 'FRIENDIKA_VERSION', '2.1.913' );
|
||||
define ( 'FRIENDIKA_VERSION', '2.1.914' );
|
||||
define ( 'DFRN_PROTOCOL_VERSION', '2.1' );
|
||||
define ( 'DB_UPDATE_VERSION', 1040 );
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@ if(strlen($a->module)) {
|
|||
*/
|
||||
|
||||
if((! $a->module_loaded) && (file_exists("mod/{$a->module}.php"))) {
|
||||
include("mod/{$a->module}.php");
|
||||
include_once("mod/{$a->module}.php");
|
||||
$a->module_loaded = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ function search_content(&$a) {
|
|||
$a->set_pager_total($r[0]['total']);
|
||||
|
||||
if(! $r[0]['total']) {
|
||||
notice('No results.');
|
||||
notice( t('No results.') . EOL);
|
||||
return $o;
|
||||
}
|
||||
|
||||
|
@ -134,13 +134,6 @@ function search_content(&$a) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
if(! $r[0]['total']) {
|
||||
notice('No results.');
|
||||
return $o;
|
||||
}
|
||||
|
||||
|
||||
$o .= paginate($a);
|
||||
|
||||
return $o;
|
||||
|
|
Loading…
Reference in a new issue