We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cf739b commit a992834Copy full SHA for a992834
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