Applying patches from otaku42: Fix two bugs in images uploads. Fix time_difference limitations.

git-svn-id: https://develop.svn.wordpress.org/trunk@456 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dougal Campbell
2003-10-17 19:26:05 +00:00
parent e0e981ba75
commit 9aa628e64b
5 changed files with 35 additions and 14 deletions

View File

@@ -1284,4 +1284,21 @@ function pingGeoURL($blog_ID) {
getRemoteFile($host,$path);
}
// implementation of in_array that also should work on PHP3
if (!function_exists('in_array')) {
function in_array($needle, $haystack) {
$needle = strtolower($needle);
for ($i = 0; $i < count($haystack); $i++) {
if (strtolower($haystack[$i]) == $needle) {
return true;
}
}
return false;
}
}
?>