SVN: toys/stbr/index.php
vip
vip at pld-linux.org
Wed May 30 15:57:19 CEST 2007
Author: vip
Date: Wed May 30 15:57:07 2007
New Revision: 8632
Modified:
toys/stbr/index.php
Log:
- do not cache if builder status is unknown
Modified: toys/stbr/index.php
==============================================================================
--- toys/stbr/index.php (original)
+++ toys/stbr/index.php Wed May 30 15:57:07 2007
@@ -302,6 +302,7 @@
while($q = sqlite_fetch_array($inner))
{
$title = '';
+ $request_status_unknown = false;
if(empty($q['queue_requester']) && empty($q['queue_date']))
{
@@ -314,18 +315,22 @@
foreach($filled['builder'] as $key => $value)
{
$title .= $value . " @ [a href="#"]" . $key . "[/a][br/]";
+ if($value === '?')
+ $request_status_unknown = true;
}
- $insert = 'INSERT INTO status VALUES ("';
- $insert .= $p['date'] . '","' . $q['aspec'] .'","';
- $insert .= $q['abranch'] . '","';
- $insert .= $filled['requester'] . '","' . $filled['date'] . '","';
- $insert .= $filled['flags'] . '","' . $title;
- $insert .= '");';
- $insert = sqlite_escape_string($insert);
- sqlite_exec($db, $insert, $err);
- echo $err;
-
+ if(!$request_status_unknown)
+ {
+ $insert = 'INSERT INTO status VALUES ("';
+ $insert .= $p['date'] . '","' . $q['aspec'] .'","';
+ $insert .= $q['abranch'] . '","';
+ $insert .= $filled['requester'] . '","' . $filled['date'] . '","';
+ $insert .= $filled['flags'] . '","' . $title;
+ $insert .= '");';
+ $insert = sqlite_escape_string($insert);
+ sqlite_exec($db, $insert, $err);
+ //echo $err;
+ }
$title = "onmouseover=\"O(event, this, '$title')\"";
$info = '<a class="mailto">' . $filled['requester'] . '</a> / ' . $filled['flags'] . '<br />' . $filled['date'];
More information about the pld-cvs-commit
mailing list