Subversion Repositories vnag

Rev

Rev 80 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 80 Rev 88
Line 58... Line 58...
58
                if ($cont === false) {
58
                if ($cont === false) {
59
                        throw new VNagException('Cannot parse version from phpMyAdmin website. The plugin probably needs to be updated. (Cannot access phpmyadmin.net)');
59
                        throw new VNagException('Cannot parse version from phpMyAdmin website. The plugin probably needs to be updated. (Cannot access phpmyadmin.net)');
60
                }
60
                }
61
 
61
 
62
                $json = @json_decode($cont, true);
62
                $json = @json_decode($cont, true);
63
                if ($json === false) {
63
                if ($json === null) {
64
                        throw new VNagException('Cannot parse version from phpMyAdmin website. The plugin probably needs to be updated. (Invalid JSON data downloaded from phpmyadmin.net)');
64
                        throw new VNagException('Cannot parse version from phpMyAdmin website. The plugin probably needs to be updated. (Invalid JSON data downloaded from phpmyadmin.net)');
65
                }
65
                }
66
                return $json['version'];
66
                return $json['version'];
67
        }
67
        }
68
 
68