diff --git a/wire/core/WireDatabaseBackup.php b/wire/core/WireDatabaseBackup.php index 90f7c9d7..2c0704b0 100644 --- a/wire/core/WireDatabaseBackup.php +++ b/wire/core/WireDatabaseBackup.php @@ -1007,6 +1007,10 @@ class WireDatabaseBackup { protected function restorePDO($filename, array $options = array()) { $fp = fopen($filename, "rb"); + if($fp === false) { + $this->error("Unable to open: $filename"); + return false; + } $numInserts = 0; $numTables = 0; $numQueries = 0; diff --git a/wire/modules/Inputfield/InputfieldSelect.module b/wire/modules/Inputfield/InputfieldSelect.module index 32130fc7..11fdbfbe 100644 --- a/wire/modules/Inputfield/InputfieldSelect.module +++ b/wire/modules/Inputfield/InputfieldSelect.module @@ -63,10 +63,9 @@ class InputfieldSelect extends Inputfield { * If you want to add an optgroup, use the $value param as the label, and the label param as an array of options. * Note that optgroups may not be applicable to other Inputfields that descend from InputfieldSelect. * - * @param string $value Value that the option submits - * @param string $label|array Optional label associated with the value (if null, value will be used as the label) - * @param array $attributes Optional attributes to be associated with this option (i.e. a 'selected' attribute for - * an