mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 13:21:36 +01:00
corrected warnings in html_select_time function, made make timestamp always return a timestamp
This commit is contained in:
@@ -22,8 +22,11 @@ function smarty_make_timestamp($string)
|
||||
return $time;
|
||||
}
|
||||
|
||||
// can't decipher, just return it
|
||||
return $string;
|
||||
// couldn't recognize it, try to return a time
|
||||
if ((int) $time > 0)
|
||||
return (int) $time;
|
||||
else
|
||||
return time();
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
Reference in New Issue
Block a user