mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-15 04:46:49 +01:00
* [ADD] Default permissions rewritten to make a more generic approach. Now it can manage multiple items/modules default values from the same view, so it's called Items Preset.
* [MOD] Code refactoring
This commit is contained in:
@@ -87,11 +87,12 @@ final class QueryResult
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
* @param string $class
|
||||
*
|
||||
* @return mixed|null
|
||||
*/
|
||||
public function getData()
|
||||
public function getData(string $class = null)
|
||||
{
|
||||
// FIXME
|
||||
if ($this->numRows === 1) {
|
||||
return $this->data[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user