Project

General

Profile

« Previous | Next » 

Revision cfa9a5be

Added by Stilez y about 9 years ago

redundant check - is_numericint() tests for >= 0
(cherry picked from commit f208e9690e2ec4089cf3d3fe5f5f03fed5a36e6f)

View differences:

src/usr/local/www/diag_confbak.php
64 64
require("guiconfig.inc");
65 65

  
66 66
if (isset($_POST['backupcount'])) {
67
	if (is_numericint($_POST['backupcount']) && ($_POST['backupcount'] >= 0)) {
67
	if (is_numericint($_POST['backupcount'])) {
68 68
		$config['system']['backupcount'] = $_POST['backupcount'];
69 69
		$changedescr = $config['system']['backupcount'];
70 70
	} else {

Also available in: Unified diff