Code Duplication    Length = 5-5 lines in 2 locations

helper/index.php 1 location

@@ 53-57 (lines=5) @@
50
	 */
51
	public function __construct() {
52
		// parent::__construct ();
53
		if (!$geophp = &plugin_load('helper', 'geophp')) {
54
			$message = 'helper_plugin_spatialhelper_index::spatialhelper_index: geophp plugin is not available.';
55
			msg($message, - 1);
56
			return "";
57
		}
58
59
		global $conf;
60
		$this->idx_dir = $conf ['indexdir'];

helper/search.php 1 location

@@ 70-74 (lines=5) @@
67
		// parent::__construct ();
68
		global $conf;
69
70
		if (!$geophp = &plugin_load('helper', 'geophp')) {
71
			$message = 'helper_plugin_spatialhelper_search::spatialhelper_search: geophp plugin is not available.';
72
			msg($message, - 1);
73
			return "";
74
		}
75
76
		$idx_dir = $conf ['indexdir'];
77
		if (!@file_exists($idx_dir . '/spatial.idx')) {