Weno 6.1.0 error

Hi @Vik , just taking a quick look at the overhaul and noticed this removal.

what if you replace this block with

   if ($GLOBALS['erx_enable']) {
        $viewArgs['title'] = 'Prescription History';
        $viewArgs['btnLabel'] = 'Add/Edit eRx';
        $viewArgs['btnLink'] = "{$GLOBALS['webroot']}/interface/eRx.php?page=compose";
    } elseif ($GLOBALS['weno_rx_enable']) {
        $viewArgs['title'] = 'Prescription History';
        $viewArgs['btnLabel'] = 'Add/Edit eRx';
        $viewArgs['btnLink'] = "{$GLOBALS['webroot']}/interface/weno/indexrx.php";
    } else {
        $viewArgs['btnLink'] = "editScripts('{$GLOBALS['webroot']}/controller.php?prescription&list&id=" . attr_url($pid) . "')";
        $viewArgs['linkMethod'] = "javascript";
        $viewArgs['btnClass'] = "iframe rx_modal";
    }