From 52f97dce0e2e62a0b1c75565a0d7a774203c52e6 Mon Sep 17 00:00:00 2001 From: paulr Date: Fri, 23 Jul 2010 09:57:44 +1000 Subject: [PATCH] cant remember? --- bin/pbdc.php | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/bin/pbdc.php b/bin/pbdc.php index abc23ea..6649e0a 100644 --- a/bin/pbdc.php +++ b/bin/pbdc.php @@ -374,6 +374,8 @@ function add_disk() $max = (int)($disk[$i]["size"]/$ts); $kt = (int)(readline("No of tapes to create [max:$max] @ ".$ts."gb each:")); + if($kt == "") $kt = $max; + if($kt < 0) $kt = $max; if($kt > $max) { echo "Sorry, max number of tapes is $max, creating $max instead\n"; $kt = $max; -- 1.7.0.4