forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-18644 Bugs found by syntax checker, merged from MOODLE_19_STABLE
- Loading branch information
mudrd8mz
committed
Mar 23, 2009
1 parent
9fb1634
commit 081a9b0
Showing
10 changed files
with
2,231 additions
and
2,232 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -587,18 +587,18 @@ function map_attrs($k, $v) { | |
// courtesy, Ryan Currie, [email protected] | ||
|
||
if (!function_exists('array_change_key_case')) { | ||
define("CASE_UPPER",1); | ||
define("CASE_LOWER",0); | ||
define("CASE_UPPER",1); | ||
define("CASE_LOWER",0); | ||
|
||
|
||
function array_change_key_case($array,$case=CASE_LOWER) { | ||
if ($case=CASE_LOWER) $cmd=strtolower; | ||
elseif ($case=CASE_UPPER) $cmd=strtoupper; | ||
function array_change_key_case($array,$case=CASE_LOWER) { | ||
if ($case == CASE_LOWER) $cmd=strtolower; | ||
elseif ($case == CASE_UPPER) $cmd=strtoupper; | ||
foreach($array as $key=>$value) { | ||
$output[$cmd($key)]=$value; | ||
} | ||
return $output; | ||
} | ||
} | ||
|
||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.