Skip to content
Browse files

Suppressed encoding error messages

  • Loading branch information...
1 parent b774753 commit 711c1acad4768aacb51424ca63c9002db32095a2 Andrew Jordan committed Jun 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 includes/init.php
View
4 includes/init.php
@@ -59,10 +59,10 @@ function encode($text, $mode=2){
return urlencode(base64_encode($text));
break;
case 2:
- return array_shift(array_values(unpack("H*", $text)));
+ return @array_shift(array_values(unpack("H*", $text)));
break;
case 3:
- return strtoupper(array_shift(array_values(unpack("H*", $text))));
+ return @strtoupper(array_shift(array_values(unpack("H*", $text))));
break;
case 4:
$search = array("+", "/", "=");

0 comments on commit 711c1ac

Please sign in to comment.
Something went wrong with that request. Please try again.