https://src.bluestatic.org
/
isso.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acacd95
)
In FetchExtension(), return an empty string if there is no extension
author
Robert Sesek <rsesek@bluestatic.org>
Wed, 16 Aug 2006 18:40:42 +0000
(18:40 +0000)
committer
Robert Sesek <rsesek@bluestatic.org>
Wed, 16 Aug 2006 18:40:42 +0000
(18:40 +0000)
Functions.php
patch
|
blob
|
history
diff --git
a/Functions.php
b/Functions.php
index ff9c13b1623eda9c77f65a458bc83a7965d50905..a6f9b4252ffcf607104eed49ac68ee20f0e85c00 100644
(file)
--- a/
Functions.php
+++ b/
Functions.php
@@
-514,7
+514,14
@@
class BSFunctions
*/
public static function FetchExtension($filename)
{
- return strval(end(explode('.', $filename)));
+ $array = explode('.', $filename);
+
+ if (sizeof($array) == 1)
+ {
+ return '';
+ }
+
+ return strval(end($array));
}
// ###################################################################