Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b16b585
)
MDL-21789 fixed buggy handling of 0.00 in s()
author
Petr Skoda
<skodak@moodle.org>
Wed, 10 Mar 2010 08:47:15 +0000
(08:47 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Wed, 10 Mar 2010 08:47:15 +0000
(08:47 +0000)
lib/weblib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/weblib.php
b/lib/weblib.php
index
36af768
..
6aaa5b6
100644
(file)
--- a/
lib/weblib.php
+++ b/
lib/weblib.php
@@
-114,7
+114,7
@@
$ALLOWED_PROTOCOLS = array('http', 'https', 'ftp', 'news', 'mailto', 'rtsp', 'te
*/
function s($var, $obsolete = false) {
- if ($var ==
'0') { // for integer 0, boolean false, string '0'
+ if ($var ==
= '0' or $var === false or $var === 0) {
return '0';
}