// Wrapper for str_pad() with left padding zeros
function padLeftZero ($str, $amount = 2) {
// Is str_pad() there?
- if (function_exists('str_pad')) {
+ if (!function_exists('str_pad')) {
// Use prependZeros()
return prependZeros($str, $amount);
} else {