1<?php
2 if(!(isset($order) && $order <> '')) {
3 $order = 'RANDOM';
4 }
5
6
7 $order = array($per_page, 0);
8
9 if($order == 'RANDOM') {
10 $ids = ModelBPR::newInstance()->getIds($per_page);
11 } else {
12 $ids = array();
13 }
14
15 $sellers = ModelBPR::newInstance()->getSellers(1, -1, -1, $order, '', '', '', $order, $ids);
16
17?>
While try to make the business profile random this is the Error message I got
PHP Notice: Undefined variable: per_page in /workspace/Main.php on line 7
PHP Fatal error: Uncaught Error: Class 'ModelBPR' not found in /workspace/Main.php:15
Stack trace:
#0 {main}
thrown in /workspace/Main.php on line 15
Is like there is bug in the line 15 with ModelBPR can you please look into and help solve the issue.
I input number for you to know the exact line that have Error.