We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f33611d + a992834 commit 5813139Copy full SHA for 5813139
1 file changed
qa-include/pages/admin/admin-categories.php
@@ -480,7 +480,8 @@
480
481
else {
482
$positionvalue = isset($previous) ? qa_lang_html_sub('admin/after_x', qa_html($previous['title'])) : qa_lang_html('admin/first');
483
- $positionoptions[1 + @max(array_keys($positionoptions))] = $positionvalue;
+ $index = empty($positionoptions) ? 0 : max(array_keys($positionoptions));
484
+ $positionoptions[1 + $index] = $positionvalue;
485
}
486
487
$qa_content['form']['fields']['position'] = array(
0 commit comments