Topic: Paypal Import module setup error.

We get PHP the following error message when trying to run Paypal import setup for the first time:
Parse error: syntax error, unexpected '!', expecting '(' in /home/cexpert2/ on line 23
Looking at the source file I can see the following at line 23:
if !defined('refresh_sys_prefs') {
    function refresh_sys_prefs()
        flush_dir(company_path().'/js_cache'); // clear cache

function can_process()
    return true;

Can someone please advise?

Re: Paypal Import module setup error.

Seems I fixed it by enclosing the comparison

if ( !defined('refresh_sys_prefs') ) {

seems to work.