Skip to content
Browse files

changing access resolution for buttons labels

  • Loading branch information...
1 parent f651fb3 commit 84257f3fe116b458679df9da0fbddefe30ec6fe7 diml committed Oct 7, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 blocks/search/block_search.php
View
4 blocks/search/block_search.php
@@ -46,8 +46,8 @@ function get_content() {
//lazy check for the moment
if (check_php_version("5.0.0")) {
//fetch values if defined in admin, otherwise use defaults
- $label = (isset($CFG->block_search_text)) ? $CFG->block_search_text : get_string('searchmoodle', 'block_search');
- $button = (isset($CFG->block_search_button)) ? $CFG->block_search_button : get_string('go', 'block_search');
+ $label = (!empty($CFG->block_search_text)) ? $CFG->block_search_text : get_string('searchmoodle', 'block_search');
+ $button = (!empty($CFG->block_search_button)) ? $CFG->block_search_button : get_string('go', 'block_search');
//basic search form
$this->content->text =

0 comments on commit 84257f3

Please sign in to comment.
Something went wrong with that request. Please try again.