about summary refs log tree commit diff
path: root/sourcecodes/remove_variables.php
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/remove_variables.php')
-rw-r--r--sourcecodes/remove_variables.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/sourcecodes/remove_variables.php b/sourcecodes/remove_variables.php
index 0d925050..04d2ce9a 100644
--- a/sourcecodes/remove_variables.php
+++ b/sourcecodes/remove_variables.php
@@ -64,7 +64,7 @@ if($structure_thr=="")
 
 $nf=$dir.$keyval."nnode.txt";
 $node=trim(file_get_contents("$nf"));
-$maxplist=$node-1;
+$maxplist=(is_numeric($node) ? $node : 0)-1;
 
 //print default number of parents
 $pfile=$dir.$keyval."parent.txt";