Code Duplication    Length = 4-4 lines in 2 locations

thumbs/phpThumb.php 2 locations

@@ 372-375 (lines=4) @@
369
                            $GLOBALS['xoopsDB']->close($cid);
370
                            $phpThumb->ErrorImage('no matching data in database.');
371
                        }
372
                    } else {
373
                        $GLOBALS['xoopsDB']->close($cid);
374
                        $phpThumb->ErrorImage('Error in MySQL query: "' . $GLOBALS['xoopsDB']->error($cid) . '"');
375
                    }
376
                } else {
377
                    $GLOBALS['xoopsDB']->close($cid);
378
                    $phpThumb->ErrorImage('cannot select MySQL database: "' . $GLOBALS['xoopsDB']->error($cid) . '"');
@@ 376-379 (lines=4) @@
373
                        $GLOBALS['xoopsDB']->close($cid);
374
                        $phpThumb->ErrorImage('Error in MySQL query: "' . $GLOBALS['xoopsDB']->error($cid) . '"');
375
                    }
376
                } else {
377
                    $GLOBALS['xoopsDB']->close($cid);
378
                    $phpThumb->ErrorImage('cannot select MySQL database: "' . $GLOBALS['xoopsDB']->error($cid) . '"');
379
                }
380
            } else {
381
                $phpThumb->ErrorImage('cannot connect to MySQL server');
382
            }