29 Jun
2011
29 Jun
'11
7:52 p.m.
In pkgsubmit.php in this part: foreach ($depends as $dep) { $deppkgname = preg_replace("/(<|<=|=|>=|>).*/", "", $dep); $depcondition = str_replace($deppkgname, "", $dep); if ($deppkgname == "#") { break; } $q = sprintf("INSERT INTO PackageDepends (PackageID, DepName, DepCondition) VALUES (%d, '%s', '%s')", $packageID, mysql_real_escape_string($deppkgname), mysql_real_escape_string($depcondition)); db_query($q, $dbh); } This will pass through the loop at least once in case of pkgdesc=(), adding an empty pkgdepends entry to the database. Easy to avoid by the fact $depends = explode(" ", $new_pkgbuild['depends']); returns false. Best Regards.