Skip to content

Commit

Permalink
Merge pull request #966 from tarasfrompir/patch-8
Browse files Browse the repository at this point in the history
Warning: Constant DEF_TYPE_OPTIONS already defined
  • Loading branch information
sergejey committed Jun 21, 2021
2 parents 853f032 + a719ca6 commit 9f9b96e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/pinghosts/pinghosts.class.php
Expand Up @@ -8,7 +8,7 @@
* @author Serge Dzheigalo <jey@tut.by> http://smartliving.ru/
* @version 0.2 (wizard, 00:01:48 [Jan 06, 2011])
*/
Define('DEF_TYPE_OPTIONS', '0=PING (HOST)|1=WEB PAGE (URL)|2=PING (HOST:PORT)'); // options for 'HOST TYPE'
Define('PING_TYPE_OPTIONS', '0=PING (HOST)|1=WEB PAGE (URL)|2=PING (HOST:PORT)'); // options for 'HOST TYPE'
//
//
class pinghosts extends module {
Expand Down
4 changes: 2 additions & 2 deletions modules/pinghosts/pinghosts_edit.inc.php
Expand Up @@ -115,7 +115,7 @@
}
}
//options for 'HOST TYPE' (select)
$tmp=explode('|', DEF_TYPE_OPTIONS);
$tmp=explode('|', PING_TYPE_OPTIONS);
foreach($tmp as $v) {
if (preg_match('/(.+)=(.+)/', $v, $matches)) {
$value=$matches[1];
Expand Down Expand Up @@ -147,4 +147,4 @@

$out['SCRIPTS']=SQLSelect("SELECT ID, TITLE FROM scripts ORDER BY TITLE");

?>
?>

0 comments on commit 9f9b96e

Please sign in to comment.