Skip to content

Commit

Permalink
Update pChart to convert split to explode
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rowe committed Jan 19, 2021
1 parent 4724689 commit dd89a78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/pChart/pChart.class
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
$buffer = fgets($handle, 4096);
$buffer = str_replace(chr(10),"",$buffer);
$buffer = str_replace(chr(13),"",$buffer);
$Values = split($Delimiter,$buffer);
$Values = explode($Delimiter,$buffer);
if ( count($Values) == 3 )
{
$this->Palette[$ColorID]["R"] = $Values[0];
Expand Down Expand Up @@ -3384,7 +3384,7 @@
{
/* Strip HTML query strings */
$Values = $this->tmpFolder.$MapName;
$Value = split("\?",$Values);
$Value = explode("?",$Values);
$FileName = $Value[0];

if ( file_exists($FileName) )
Expand Down
2 changes: 1 addition & 1 deletion lib/pChart/pData.class
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
$buffer = fgets($handle, 4096);
$buffer = str_replace(chr(10),"",$buffer);
$buffer = str_replace(chr(13),"",$buffer);
$Values = split($Delimiter,$buffer);
$Values = explode($Delimiter,$buffer);

if ( $buffer != "" )
{
Expand Down

0 comments on commit dd89a78

Please sign in to comment.