summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0630509)
raw | patch | inline | side by side (parent: 0630509)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Jul 2005 10:37:21 +0000 (10:37 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Jul 2005 10:37:21 +0000 (10:37 +0000) |
include/functions.inc | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index f586a0c66fe067134896b646ed45ddf23feb5009..db9cacaf2ac81a75c54745ef6326c8b3b5fd12b2 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
/* user not found */
case 0: return (NULL);
- break;
/* valid uniq user */
case 1:
/* CUPS is not available, try lpstat as a replacement */
} else {
- unset ($ar);
+ $ar = false;
exec("lpstat -p", $ar);
foreach($ar as $val){
list($dummy, $printer, $rest)= split(' ', $val, 3);