]> git.mjollnir.org Git - moodle.git/commitdiff
changing access resolution for buttons labels
authordiml <diml>
Sun, 7 Oct 2007 19:44:59 +0000 (19:44 +0000)
committerdiml <diml>
Sun, 7 Oct 2007 19:44:59 +0000 (19:44 +0000)
blocks/search/block_search.php

index 21f8e0a856f749d05d94066491dce72a27256e9e..f75fa1668ef6559bd93d8b42f68bb21d72428706 100644 (file)
@@ -46,8 +46,8 @@
       //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 =