Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHeinrich committed Jan 13, 2023
1 parent ce38a25 commit a61d9c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demos/demo.browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ function table_var_dump($variable, $wrap_in_td=false, $encoding='') {
global $FileSystemEncoding;
$encoding = ($encoding ? $encoding : $FileSystemEncoding);
$returnstring = '';
switch (gettype($variable)) {
switch (strtolower(gettype($variable))) {
case 'array':
$returnstring .= ($wrap_in_td ? '<td>' : '');
$returnstring .= '<table class="dump" cellspacing="0" cellpadding="2">';
Expand Down
2 changes: 1 addition & 1 deletion getid3/module.graphic.jpg.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function Analyze() {
* @return mixed
*/
public function CastAsAppropriate($value) {
if (is_array($value)) {
if (is_array($value) || is_null($value)) {
return $value;
} elseif (preg_match('#^[0-9]+/[0-9]+$#', $value)) {
return getid3_lib::DecimalizeFraction($value);
Expand Down

0 comments on commit a61d9c5

Please sign in to comment.