1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00
Fix di un bug relativo alla classe Translator e all'ordinamento di default delle tabelle con Datatables primitivo (Log, ...).
This commit is contained in:
Thomas Zilio
2017-08-28 12:16:14 +02:00
parent 346ac55cba
commit f17a64a1bd
3 changed files with 4 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ namespace Util;
*/
abstract class Singleton
{
/** @var \Util\Singleton Oggetto istanziato */
/** @var \Util\Singleton Oggetti istanziati */
protected static $instance = [];
protected function __construct()
@@ -23,7 +23,7 @@ abstract class Singleton
{
$class = get_called_class(); // late-static-bound class name
if (self::$instance[$class] === null) {
if (!isset(self::$instance[$class])) {
self::$instance[$class] = new static();
}