Skip to content

Commit 4ecc5ff

Browse files
committed
fix(entries-controller): fix method move()
1 parent 8007e87 commit 4ecc5ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Controllers/EntriesController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,8 @@ public function move(Request $request, Response $response) : Response
450450
$entry_id = $this->getEntryID($query);
451451

452452
// Get current Entry ID
453-
$entry_id_current = array_pop(explode("/", $entry_id));
453+
$parts = explode("/", $entry_id);
454+
$entry_id_current = array_pop($parts);
454455

455456
// Fetch entry
456457
$entry = $this->entries->fetch($this->getEntryID($query));

0 commit comments

Comments
 (0)