Skip to content

Commit

Permalink
fixed Only variables should be passed by reference error
Browse files Browse the repository at this point in the history
  • Loading branch information
ZsgsDesign committed Apr 3, 2021
1 parent f0e975b commit edc33bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MOSS.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ public function saveTo($path, $id)
if (!is_dir($path)) mkdir($path, '0777', true);
foreach ($table->find('a') as $a) {
$a->href = explode("/results/$id/", $a->href)[1];
$a->innertext = end(explode("/", $a->innertext));
$tempArr=explode("/", $a->innertext);
$a->innertext = end($tempArr);
}
file_put_contents($path . DIRECTORY_SEPARATOR . 'index.html', $table->outertext);
$this->fetchDetails($path, $id, count($table->find('a')) / 2);
Expand Down

0 comments on commit edc33bf

Please sign in to comment.